﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="demo.Controls.AssessmentExt" Codebehind="AssessmentExt.ascx.cs" %>
<%@ Register assembly="Anthem" namespace="Anthem" tagprefix="anthem" %>

<anthem:Repeater ID="AssList" AutoUpdateAfterCallBack="true" Visible = "false" runat="server">
    <HeaderTemplate>
    <fieldset>
    <legend>
        审批记录
    </legend>                                               
    <table style="width:100%;margin-bottom:-2px;" class="divTable" cellpadding="0" cellspacing="0">
        <thead class="Title">
            <tr style="background:url(../../Resource/Images/Icon_TableTitle.gif) repeat-x;">     
                <td style="width:106px; padding-left:5px;">步骤/姓名</td>           
                <td style="width:106px;">日期</td>
                <td style="width:70px;">意见</td>
                <td>备注</td>                
            </tr>
        </thead>
    </HeaderTemplate>
    <ItemTemplate> 
        <tr class="Item">
            <td style="width:106px;padding-left:5px;"><%# Eval("Step")%><br /><span style="color:Blue;"><%# Eval("AssignedToUserFullName")%></span></td>
            <td style="width:106px;"><%# Eval("Time","{0:yyyy-M-d H:m}")%></td>
            <td style="width:70px;"><%# Eval("OpinionText")%></td>
            <td><%# Eval("Remark")%>&nbsp;</td>
        </tr>
    </ItemTemplate>  
    <FooterTemplate>
        </table>    
        </fieldset>        
    </FooterTemplate>
</anthem:Repeater>

<anthem:Panel ID="IsNotPrint" runat="server" AutoUpdateAfterCallBack="true">
<fieldset>
    <legend><%=LegendName %>(步骤:<%=TaskAPI.Step%>)</legend>
    <table id="TableApprove" runat="server" cellpadding="0" cellspacing="0" style="width:100%;">
        <tr>
            <td style="width:110px;height:26px;">审批项:</td>
            <td style="width:250px;"><anthem:RadioButtonList ID="RadOpition" BorderWidth="0" runat="server" style="margin-left:-2px;" RepeatDirection="Horizontal" Height="20px" Width="240px" AutoUpdateAfterCallBack="true" EnableCallBack="true" AutoCallBack="true" onselectedindexchanged="RadOpition_SelectedIndexChanged"></anthem:RadioButtonList></td>
            <td align="right" valign="middle"></td>
            <td align="right" style="width:40px"><anthem:Label ID="BackTo_L" runat="server" Text="步骤" AutoUpdateAfterCallBack="true" Visible="false"></anthem:Label></td>
            <td style="width:150px;" align="left">
                <anthem:DropDownList ID="BackTo" runat="server" AutoUpdateAfterCallBack="true" Width="140" Visible="false"></anthem:DropDownList>
            </td>
        </tr>
    </table>

    <anthem:Panel ID="P_ConferTo" runat="server" AutoUpdateAfterCallBack="true">
    <table cellpadding="0" cellspacing="0" style="width:100%;">
        <tr>
            <td style="width:110px;"><anthem:Label ID="ConferTo_L" runat="server" Text="加签/转发人：" AutoUpdateAfterCallBack="true"></anthem:Label></td>
            <td colspan="4">
                <anthem:TextBox ID="ConferTo" runat="server" CssClass="cmDialogExt" onclick="OpenDialog2('../../Workflow/spMulEmployee.aspx?v=1','840','560','v',this.id,'1')" Width="464" AutoUpdateAfterCallBack="true" EnableCallBack="true" AutoCallBack="true" OnTextChanged="ConferTo_TextChanged"></anthem:TextBox>&nbsp;
                <anthem:LinkButton ID="Clear" runat="server" Text="清空" Font-Underline="true" AutoUpdateAfterCallBack="true" EnableCallBack="true" onclick="Clear_Click"></anthem:LinkButton>
            </td>
        </tr>
    </table>
    </anthem:Panel>

    <table cellpadding="0" cellspacing="0" style="width:100%;">
        <tr>
            <td style="width:110px;vertical-align:top;">备注:</td>
            <td>
                <div><anthem:TextBox ID="Remark" runat="server" Height="70" TextMode="MultiLine" AutoUpdateAfterCallBack="true"></anthem:TextBox></div>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="0" style="width:100%;">
        <tr>
            <td style="height:40px">
                <anthem:Button ID="BtnSaveAsDraft" runat="server" AutoUpdateAfterCallBack="true" EnableCallBack="true" PreCallBackFunction="SaveAsDraft_PreCallBack" style="background:url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px; border:1px solid #FCC245; padding-top:2px; cursor:pointer;height:22px;width:90px;margin-right:4px;margin-top:4px;margin-bottom:4px;" Text="保存为草稿" OnClick="Submit_Click" />
                <anthem:Button ID="BtnSend" runat="server" AutoUpdateAfterCallBack="true" EnableCallBack="true" PreCallBackFunction="Submit_PreCallBack" style="background:url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px; border:1px solid #FCC245; padding-top:2px; cursor:pointer;height:22px;width:60px;margin-right:4px;margin-top:4px;margin-bottom:4px;" Text="提交" OnClick="Submit_Click" />
                <anthem:Button ID="BtnAbort" runat="server" AutoUpdateAfterCallBack="true" EnableCallBack="true" PreCallBackFunction="Abort_PreCallBack" style="background:url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px; border:1px solid #FCC245; padding-top:2px; cursor:pointer;height:22px;width:60px;margin-right:4px;margin-top:4px;margin-bottom:4px;" Text="撤单" OnClick="Submit_Click" />
                <anthem:Button ID="BtnClose" runat="server" AutoUpdateAfterCallBack="true" OnClientClick="window.close();" style="background:url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px; border:1px solid #FCC245; padding-top:2px; cursor:pointer;height:22px;width:60px;margin-right:4px;margin-top:4px;margin-bottom:4px;" Text="关闭" />
                <anthem:Button ID="BtnPrint" runat="server" AutoUpdateAfterCallBack="true" Visible="false" style="background:url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px; border:1px solid #FCC245; padding-top:2px; cursor:pointer;height:22px;width:80px;margin-right:4px;margin-top:4px;margin-bottom:4px;" Text="打印预览" OnClick="Print_Click" />
                <anthem:Button ID="BtnForward" runat="server" AutoUpdateAfterCallBack="true" EnableCallBack="true" PreCallBackFunction="Forward_PreCallBack" Visible="false" style="background:url('../../Resource/Images/Icon_ButtonBg.gif') 0px -12px; border:1px solid #FCC245; padding-top:2px; cursor:pointer;height:22px;width:60px;margin-right:4px;margin-top:4px;margin-bottom:4px;" Text="转发" OnClick="Forward_Click" />
                <%=INFO%>
            </td>
        </tr>
    </table>
</fieldset>
</anthem:Panel>
